#ifndef CLOCK_H
#define CLOCK_H

#include <avr/pgmspace.h>
#include "Arduino.h"
#include <LiquidCrystal.h>
#include <DS1307RTC.h>
#include <Time.h>
#include <Wire.h>

#include "utility.h";

extern bool new_day;
extern bool new_hr;
extern bool new_min;
extern bool new_sec;

class Clock
{
public:
  tmElements_t curr_time;

  void init();
  void update_clock(); 
  void print_time(int hr,int min,int sec);
  void print_time_min(int hr,int min);
  void print_time_min();
  void print_time_sec();
  void print_date(int yr ,int  mth ,int date ,int day);  
  void print_date();
  void print_day();

  void set_time(int hr,int min,int sec);
  void set_date(int yr,int mth,int date,int day);

  int get_day() { 
    return last_day; 
  }
  int get_hr() { 
    return last_hr; 
  }
  int get_min() {
    return last_min;
  }
  int get_sec() { 
    return last_sec; 
  }
private:
  int last_day;
  int last_hr;
  int last_min;
  int last_sec;

};


#endif

